-- GENERATED SPELL FOR [Kolkar Destroyer] --


function spell0_4637(pUnit, Event) --@Execute,n/a--
pUnit:FullCastSpellOnTarget(7160,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_4637', 0, 1)
end

function spell1_4637(pUnit, Event) --@Shock,n/a--
pUnit:FullCastSpellOnTarget(11824,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_4637', 0, 1)
end

function Sorts_4637(pUnit, Event)
local choix_sorts_4637 = math.random(0, 1)
if choix_sorts_4637 == 0 then
pUnit:RegisterEvent('spell0_4637', 1, 1)
end
if choix_sorts_4637 == 1 then
pUnit:RegisterEvent('spell1_4637', 1, 1)
end
end

function mob4637_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_4637', math.random(1500, 3000), 1)
end

function mob4637_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob4637_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob4637_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(4637, 1, 'mob4637_Action')
RegisterUnitEvent(4637, 2, 'mob4637_Leave')
RegisterUnitEvent(4637, 3, 'mob4637_Kill')
RegisterUnitEvent(4637, 4, 'mob4637_Die')
